/*
 * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#pragma once

#ifndef _ROTAT_EC11_DRV_H
#define _ROTAT_EC11_DRV_H

#include "sdkconfig.h"
#include "driver/gpio.h"
#include "my_system_param.h"


typedef struct 
{
    gpio_num_t a_pin;     // ec1x编码器A相
    gpio_num_t b_pin;     // ec1x编码器b相
    // gpio_num_t key_port;   // ec1x编码器按键
    /* data */
    // button_key_status_e key_sta;
    // rotation_status_e rotation_sta;
}ec1x_data_t;


void rotation_ec11_init(void);
extern int rotation_num;

#endif
